#pragma once
#include <SFML/Graphics.hpp>
#include <SFML\System.hpp>
#include <iostream>
#include <vector>
#include <assert.h>
#define DEBUG false

namespace game
{

class KeyLock
{
	std::vector<sf::Keyboard::Key> _listeningKeys;	
	sf::Keyboard::Key _lastPressedKey;
	int _tick;

	sf::Window * _window;
	sf::Mouse::Button _lastPressedMouseButton;
	int _mTick;

public:
	bool isKeyPressed(sf::Keyboard::Key k);
	bool isMousePressed(sf::Mouse::Button mb);
	KeyLock(sf::RenderWindow *w);
	~KeyLock(){std::cout << "Keylock : Deconstructed" << std::endl;};
	//void InitKeyLock(sf::RenderWindow *w);
	sf::Vector2i getMousePos();
};

}